#test: test.o Add.o Sub.o Mul.o Div.o
#	gcc -o $@ $^
static-lib=libmymath.a #库真正的名字是mymath

$(static-lib):Add.o Div.o Mul.o Sub.o
	ar -rc $@ $^

%.o:%.c
	gcc -c $<

.PHONY:output
output:
	mkdir -p mymath_lib/include
	mkdir -p mymath_lib/lib 
	cp -f *.h mymath_lib/include
	cp -f *.a mymath_lib/lib 


.PHONY:clean
clean:
	rm -rf *.o *.a mymath_lib test 
